package gui;

import interfaces.Command;

import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

import mediator.Mediator;

public class PopupItemDropOffer extends JMenuItem implements Command {

	Mediator med;
	
	public PopupItemDropOffer (ActionListener act, Mediator md) {
		super("Drop Offer Request");
		addActionListener(act);
		med = md;
		
		med.registerPopupItemDropOffer(this);
	}
	
	@Override
	public void execute() {
		med.clickPopupItemDropOffer();
	}

}